#!/bin/sh
#chkconfig: 2345 12 12
#description: lichrcd service 

RETVAL=0
case "$1" in
        status)
                lich.remotecopy --stat client
                lich.remotecopy --stat server
                ;;
        start)
                lich.remotecopy --start client
                lich.remotecopy --start server
                ;;
        stop)
                lich.remotecopy --stop client
                lich.remotecopy --stop server
                ;;
        restart)
                lich.remotecopy --stop client
                lich.remotecopy --stop server
                lich.remotecopy --start client
                lich.remotecopy --start server
                ;;
        *)
                echo $"Usage: $0 {start|stop|restart|status}"
                RETVAL=2
esac
exit $RETVAL
